home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / doom / addons.zip / BCOTT102.ZIP / COTTAGE.REF < prev    next >
Text File  |  1997-07-22  |  12KB  |  703 lines

  1. ;yo whutup? all dis is for BeachSide Cottage by Skull from BIG R.C.s BBS,
  2. ;the most kickass BBS in the 610 area code... (610)494-4604call today! 
  3. ;anywayz. Dont copy dis without givin me some credit here. Or ill shoot you.
  4. ;Later
  5. @#Travel
  6. @if cott.dat exist false then do
  7.   @begin
  8.   @closescript
  9.   @end
  10.  
  11. @if &lastx is 58 then do
  12.   @begin
  13.   @closescript
  14.   @end
  15.  
  16. @do moveback
  17.  
  18.   @do `s02 is getname `p20
  19.   @do upcase `s01
  20.   @if `s01 is NONE then do
  21.    @begin
  22.   @do moveback
  23.   @do saybar
  24. `0Captain:  `2Sorry, the owner has requested that I do not allow anyone
  25. on this here ferry.
  26.    @closescript
  27.    @end
  28.  
  29.   @show
  30. `r0`c  `r1 Ride on the Ferry `r0
  31.  
  32. `2  `2The Captain looks over at you.  `0"Yeah, what's your business?"
  33.  
  34. @do write
  35. `x`x
  36. @do `v01 is 1
  37. @choice
  38. Offer an explanation
  39. Nevermind
  40.   @if response is 1 then do
  41.    @begin
  42.    @do write
  43. `\`\  `2Say what? :`x
  44.   @do readstring 40 NIL `s03 
  45.   @do upcase `s03
  46.   @do upcase `s01
  47.  
  48.   @if `s03 is `s01 then do
  49.     @begin
  50.     @show
  51. `\`\  `0"OK, then lets go!"`\`\`k
  52.     @do goto chooseaplace
  53.     @drawmap
  54.     @update
  55.     @closescript
  56.     @end
  57.    @writefile mail\mail`p20.dat
  58.   `0Guard Reports:
  59. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  60. `0  `n`2 attempted to ride your ferry by saying
  61.   `0"`s03"`2.  `2He was `bNOT`2 allowed onboard.
  62.  
  63.    @show
  64. `\`\  `2The captain asks you to leave`\`\`k
  65.    @do moveback
  66.    @do goto done
  67.    @end
  68.  
  69.   @do goto done
  70.  
  71.  
  72.  @#done
  73.  @drawmap
  74.  @update
  75.  
  76.  
  77. @#ChooseAPlace
  78. ;lets them warp to a view places
  79. @offmap
  80. @do moveback
  81. @show
  82. `r0`c  `r1  Your Ferry `r0
  83.  
  84.   `0"Good day, sir. Where do you wish to go today?" `2asks the captain.
  85.  
  86. @do `v01 is 1
  87. @do write
  88. `x`x
  89. @choice
  90. Sosen Village
  91. Flag City
  92. Portown
  93. I'll stay here, thanks
  94. @if response not 4 then do
  95.   @begin
  96. @show
  97. `\`\  `0"A fine choice, Sir."
  98.  
  99. `k  `2A few minutes later, you arrive at your destination.
  100.  
  101.   `0"Have a nice day, Sir."
  102.  
  103.   `2Looks like you are on your own.
  104.  
  105. `k
  106. @if responce is 1 then do
  107.   @begin
  108.  
  109.    @do x is 38
  110.    @do y is 5
  111.    @do map is 456
  112.   @end
  113.  
  114. @if responce is 2 then do
  115.   @begin
  116.  
  117.    @do x is 40
  118.    @do y is 14
  119.    @do map is 71
  120.   @end
  121.  
  122. @if responce is 3 then do
  123.   @begin
  124.    ;Porttown
  125.    @do x is 43
  126.    @do y is 16
  127.    @do map is 956
  128.   @end
  129.  
  130.  
  131.   @loadmap &map
  132.   @end
  133. @drawmap
  134. @update
  135.  
  136. @#priv
  137. @do moveback
  138. @do saybar
  139. The private bedroom, how peaceful.
  140.  
  141. @#innkeeper
  142.  
  143.  
  144. @do moveback
  145.  
  146. @if cott.dat exist false then do
  147.   @begin
  148.   @closescript
  149.   @end
  150.  
  151. @readfile cott.dat
  152. `p20
  153. `s01
  154. @
  155.  
  156. @if `p20 is &playernum then do
  157.   @begin
  158.   @do moveback
  159.   @do saybar
  160. `0Guard: `2Good day, s&sir!
  161.   @closescript
  162.   @end
  163.  
  164.  
  165.  
  166. @if cotta.dat exist false then do
  167.   @begin
  168.   @writefile cotta.dat
  169. 200
  170. 0
  171.   @
  172.   @end
  173.  
  174.   @readfile cotta.dat
  175. `p26
  176. `p27
  177.   @
  178.  
  179.  
  180. @do `v01 is 1
  181. @show
  182. `r0`c  `r1  `%Getting a room to Sleep in  `r0
  183.  
  184. `2  The guard looks at you.  `0"Hey! You want a room 'ta sleep in? For you 
  185.   only `$$`p26!`2"
  186.  
  187. @do write
  188. `x`x
  189. @choice
  190. YEAH
  191. Hellz no!
  192. @if responce is 1 then do
  193.   @begin
  194.   @if money < `p26 then do
  195.     @begin
  196.     @show
  197. `\`\  `2YO! Whutup, fool? You ain't got da money. GET OUT! 
  198.  
  199.  
  200. `k
  201.    @do goto innkeeper
  202.    @end
  203.  
  204.   @do money - `p26
  205.   @do `p27 + `p26
  206.   @do delete cotta.dat
  207.   @writefile cotta.dat
  208. `p26
  209. `p27
  210.   @
  211.    @writefile mail\mail`p20.dat
  212.   `0Business note:
  213. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  214. `0  `n`2 has rented a room in your cottage! 
  215.   @do y - 3
  216.   @drawmap
  217.   @update
  218.   @do saybar
  219. `0Guard:  `2"Alright then, go in back and pick out a bed."
  220.   @closescript
  221.   @end
  222.  
  223. @drawmap
  224. @update
  225.  
  226. @#pass1
  227. @readfile cott.dat
  228. `p20
  229. `s01
  230. @if `p20 is &playernum then do
  231.   @begin
  232.   @closescript
  233.   @end
  234.  
  235. @if &lasty is 11 then do
  236.   @begin
  237.   @do moveback
  238.   @do saybar
  239. `0Guard:  `2Sup, fool? You need to pay first!
  240.   @end
  241.  
  242. @#pass2
  243. @if cott.dat exist false then do
  244.   @begin
  245.   @closescript
  246.   @end
  247.  
  248. @if &lastx is 58 then do
  249.   @begin
  250.   @closescript
  251.   @end
  252.  
  253. @readfile cott.dat
  254. `p20
  255. `s01
  256. @if `p20 is &playernum then do
  257.   @begin
  258.   @closescript
  259.   @end
  260.  
  261. @do moveback
  262.  
  263.   @do `s02 is getname `p20
  264.   @do upcase `s01
  265.   @if `s01 is NONE then do
  266.    @begin
  267.   @do moveback
  268.   @do saybar
  269. `0Guard:  `2Can't go over there, its PRIVATE.
  270.  
  271.    @closescript
  272.    @end
  273.  
  274.   @show
  275. `r0`c  `r1 Entrance to the private area `r0
  276.  
  277. `2  `2The guard looks over at you.  `0"YO! What's your business?"
  278.  
  279. @do write
  280. `x`x
  281. @do `v01 is 1
  282. @choice
  283. Offer an explanation
  284. Nevermind
  285.   @if response is 1 then do
  286.    @begin
  287.    @do write
  288. `\`\  `2Say what? :`x
  289.   @do readstring 40 NIL `s03 
  290.   @do upcase `s03
  291.   @do upcase `s01
  292.  
  293.   @if `s03 is `s01 then do
  294.     @begin
  295.     @show
  296. `\`\  `0"Oh, ok then!"`\`\`k
  297.     @do x + 1
  298.     @drawmap
  299.     @update
  300.     @closescript
  301.     @end
  302.    @writefile mail\mail`p20.dat
  303.   `0Guard Reports:
  304. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  305. `0  `n`2 tried to get into the PRIVATE bedroom by saying
  306.   `0"`s03"`2.  `2He was `bNOT`2 allowed in.
  307.  
  308.    @show
  309. `\`\  `2The Guard draws his sword.`\`\`k
  310.    @do moveback
  311.    @do goto done
  312.    @end
  313.  
  314.   @do goto done
  315.  
  316.  
  317.  @#done
  318.  @drawmap
  319.  @update
  320.  
  321. @#doorguard
  322. @do moveback
  323. @label startg
  324.  
  325. @if cotta.dat exist false then do
  326.   @begin
  327.   @writefile cotta.dat
  328. 200
  329. 0
  330.   @end
  331.  
  332.  
  333. @if cott.dat exist false then do
  334.   @begin
  335.   @do saybar
  336. `0"Get out please!  The cottage has been sold!" `2the guard commands.
  337.  @closescript
  338.   @end
  339.  
  340. @readfile cott.dat
  341. `p20
  342. `s01
  343. @
  344.  
  345.   @readfile cotta.dat
  346. `p26
  347. `p27
  348.   @
  349.  
  350.  
  351. ;load owner and current password
  352.  
  353. @if `p20 not &playernum then do
  354.   @begin
  355.   @do saybar
  356. You wave to the guard.
  357.   @closescript
  358.   @end
  359. @busy
  360.  
  361.  
  362. @do `v01 is 1 ;set default choice to 1
  363. @show
  364. `r0`c  `r1 Instructing your servants `r0
  365.  
  366.   `2The guard stops working for a moment.
  367.  
  368. @do write
  369. `x`x
  370. @choice
  371. Set password to private bedroom & ferry. (currently is `0`s01`%)
  372. Ownership options
  373. Set room fee (currently is at `$$`p26`%)
  374. Take money from register
  375. Leave
  376. @
  377.  
  378. @if responce is 4 then do
  379.   @begin
  380.   @if `p27 < 1 then do
  381.    @begin  
  382. @show
  383. `\`\  `0"Um, sir, we havn't been doing much business lately..."`2 The guard says.
  384.  
  385.  
  386. `k  `$"How much have we done?" `2you ask.
  387.  
  388. `k  `0"Well, none since you last checked, sir." `2the Innkeeper cries as he bursts into tears.
  389.  
  390. `k  `$"WHY AREN'T WE DOING BUSINESS?"`2 you scream, then throw a tantrum.
  391.  
  392. `k  `0"I guess this would not be a good time to ask for a raise?"`2 he asks. You
  393.               dont bother to answer
  394. `k
  395.    @do goto doorguard
  396.    @end
  397.  
  398.  
  399.   @readfile cotta.dat
  400. `p26
  401. `p27
  402.   @
  403.   @do money + `p27
  404.   @do delete cotta.dat
  405.   @writefile cotta.dat
  406. `p26
  407. 0
  408.   @
  409.  
  410.   @show
  411. `\`\  `2Sure, we've made `$$`p27`2, here ya go!
  412.  
  413. `k
  414.   @end
  415.  
  416. @if responce is 3 then do
  417.   @begin
  418.   @do write
  419. `\`\`x`xNew fee? :`x
  420.   @do readnum 10 `p26
  421.   @if `v40 < 0 then do
  422.     @begin
  423.     @show
  424. `\`\  `2Price set to `$$`v40`2.
  425.  
  426. `k  `2You think you're pretty smart, don't you.
  427.  
  428. @do `v01 is 1
  429. @do write
  430. `x`x
  431. @choice
  432. Yes, yes I do.  Now please give me 1,000,000 gold for free, I deserve it.
  433. No, you oh computer are the true master.  We humans suck.
  434. @if responce is 1 then do
  435.   @begin
  436.   @show
  437. `\`\  `2GET OUT OF HERE BEFORE I `bDELETE`2 YOU!  Next time I will.
  438.  
  439.   @do goto doorguard
  440.   @end
  441.  
  442. @if responce is 2 then do
  443.   @begin
  444.   @show
  445. `\`\  The computer playfully slaps your ass as it walks out.
  446.  
  447.   @do goto doorguard
  448.  
  449.   @end
  450.  
  451.     @do goto doorguard
  452.     @end
  453.   @readfile cotta.dat
  454. `p26
  455. `p27
  456.   @
  457.   @do `p26 is `v40
  458.   @do delete cotta.dat
  459.   @writefile cotta.dat
  460. `p26
  461. `p27
  462.   @
  463.   @do goto doorguard
  464.   @end
  465.  
  466.  
  467.  
  468. @if responce is 2 then do
  469.  @begin
  470.  @show
  471. `r0`c  `r1 Ownership Options `r0
  472.  
  473.   `2You retrieve your deed and carefully look it over.
  474.    
  475.    @do `v01 is 1
  476.    @do write
  477. `x`x
  478.    @choice
  479. Transfer deed to someone else
  480. Sell property back to the bank for `$350`%.
  481. Do nothing of the sort
  482.  @if response is 1 then do
  483.    @begin
  484.    @show
  485. `\`\  `2Transfer to whom?
  486.    @chooseplayer `p20
  487.  
  488.    @if `p20 is 0 then do
  489.     @begin
  490.     @show
  491.   `2You decide to keep your domain - for now.`\`\`k
  492.     @do goto startg
  493.     @end
  494.    @do `s02 is getname `p20
  495.    @show
  496. `2  Are you sure you wish to give your cottage to `0`s02`2?
  497. @do write
  498. `x`x
  499. @choice
  500. Yes
  501. Not on your life.
  502.  @if responce is 2 then do
  503.    @begin
  504.     @show
  505. `\`\  `2You decide to keep your domain - for now.`\`\`k
  506.     @do goto startg
  507.    @end
  508.  
  509.   @do delete cott.dat
  510.   @writefile cott.dat
  511. `p20
  512. `s01
  513. 0
  514. 0
  515. 0
  516. 0
  517.    @writefile mail\mail`p20.dat
  518.   `0Business note:
  519. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  520. `0  `n`2 has transferred ownership of BeachSide Cottage to you. 
  521.   Password to enter bedroom will remain `0"`s01"`2 unless
  522.   `2you come by and change it.
  523.  
  524.     @do addlog
  525.   `0`n`2 has given `%BeachSide Cottage`2 to `0`s02`2!
  526.      @routine seperate in gametxt.ref
  527.  
  528.     @show
  529. `\`\  `2Deed transfered.  Oh well - it was fun while it lasted.`\`\`k
  530.    @do goto done
  531.    @end
  532.   @if response is 2 then do
  533.     @begin
  534.     @show
  535. `\`\`2  Are you sure you wish to sell your cottage back to the bank?`\
  536. @do `v01 is 1
  537. @do write
  538. `x`x
  539. @choice
  540. Yes
  541. Not on your life.
  542.  @if responce is 2 then do
  543.    @begin
  544.     @show
  545. `\`\  `2You decide to keep your domain - for now.`\`\`k
  546.     @do goto startg
  547.    @end
  548.  
  549.   @do delete cott.dat
  550.   @do delete cotta.dat
  551.   @do money + 350
  552.   @show
  553. `\`\  `%COTTAGE SOLD!`2`\`\`k
  554.     @do addlog
  555.   `0`n`2 has sold `%BeachSide Cottage`2 back to the bank!
  556.     @routine seperate in gametxt.ref
  557.     @do goto done
  558.     @end
  559.  
  560.  
  561.   @do goto startg
  562.  @end
  563.  
  564. @if responce is 1 then do
  565.   @begin
  566.   @do write
  567. `\`\  `0"And the new password, s&sir?" `2(enter `4NONE`2 for no access to anyone)`\  `2Password:`x
  568.   @do readstring 40 `s01 `s01 
  569.   @do `p20 is length `s01
  570.   @if `p20 < 2 then do
  571.    @begin
  572.    @show
  573. `\`\  `2You decide the current password is ok.`\`\`k
  574.    @do goto startg
  575.    @end
  576.   @do delete cott.dat
  577.   @writefile cott.dat
  578. &playernum
  579. `s01
  580. 0
  581. 0
  582. 0
  583. 0
  584. @show
  585. `\`\  `0"Yes s&sir, I will not forget it!" `2the Innkeeper promises.`\`\`k
  586.    @do goto startg
  587.   @end
  588.  
  589. @drawmap
  590. @update
  591.  
  592. @#sign
  593. @do moveback
  594.  
  595.  @if cott.dat exist false then do
  596.  @begin
  597.  @do saybar
  598. BeachSide Cottage - For sale cheap, enquire inside.
  599.  @end 
  600.  
  601. @if cott.dat exist true then do
  602.  @begin
  603. @readfile cott.dat
  604. `p20
  605. `s01
  606. @
  607. @do `s01 is getname `p20
  608.  @do saybar
  609. `2Property of `0`s01`2.
  610.  @end 
  611.  
  612. @#enter
  613. @do moveback
  614. @offmap
  615.  
  616.  
  617. @if cott.dat exist false then do
  618.   @begin
  619.   @show
  620. `r0`c  `r1 `%For Sale `r0
  621.  
  622.   `2CBeachSide Cottage - a beautiful cottage on the beach.
  623.   `$$550`2.
  624.   
  625.   Buy now and recieve the following bonuses:
  626.  
  627.   `0* `2Private area for you
  628.  
  629.   `0* `24 guest beds
  630.  
  631.   `0* `2A ferry
  632. @do `v01 is 1
  633. @do write
  634. `x`x
  635. @choice
  636. >&money 549 Purchase it.
  637. <&money 550 Sigh wistfully and leave since you don't have enough.
  638. >&money 549 Leave.
  639. @
  640.  
  641. @if responce is 1 then do
  642.   @begin
  643.   @if cott.dat exist true then do
  644.     @begin
  645.     @show
  646. `\`\  `2Oh crap!  Someone bought it while you were thinking about it.  You
  647.   will regret your snail like thinking for the rest of your days.`\`\`k
  648.     @do goto done
  649.     @end
  650.  
  651.   @writefile cott.dat
  652. &playernum
  653. NONE
  654. 0
  655. 0
  656. 0
  657. 0
  658.     @do money - 550
  659.     @do addlog
  660.   `0`n `2buys `%BeachSide Cottage`2!
  661.      @routine seperate in gametxt.ref
  662.  
  663.   @show
  664. `r0`c  `r1 `%Why hello there, landowner! `r0
  665. `\`2  Nice job!  You now own this Cottage!
  666.  
  667.   `2Enjoy your new home.`\`\`k
  668.   @end
  669.  
  670. @label done
  671. @drawmap
  672. @update
  673. @closescript
  674.   @end
  675.  
  676. @readfile cott.dat
  677. `p20
  678. `s01
  679. @
  680.  
  681. @do `p21 is deleted `p20
  682.  
  683. @if `p21 is 1 then do
  684.   @begin
  685.    ;owner got deleted!!!  Lets put it up for sale again.
  686.    @do delete cott.dat
  687.     @do addlog
  688.   `%BeachSide Cottage`2 is put on the market today.
  689.      @routine seperate in gametxt.ref
  690.  
  691.    ;run script again
  692.    @do goto enter
  693.   @end
  694.  
  695. ;let him in
  696. @label letmein
  697. @do x is 51
  698. @do y is 12
  699. @do map is 1557
  700. @loadmap &map
  701. @do goto done
  702. @#done
  703.